﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace MvcApplication1.Models
{
    [Table("Producto")]
    public class Producto

    {
          

        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }
       
        [Required]
        public String nombre { get; set; }
        [Required]
        public String modelo { get; set; }
        [Required]
        public String marca { get; set; }
        [Required]
        public float precio { get; set; }
        [Required]

        public String descripcion { get; set; }
        public String foto { get; set; }

  

    }
}